package com.ch.client.openApi.factory;

import com.ch.client.openApi.entity.Emp;
import com.ch.client.openApi.service.EmpService;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author wangzhuangzhuang
 * @DESC:
 * @date 2022-02-25 15:29
 */
@Component
public class EmpServiceFactory implements FallbackFactory<EmpService> {

	public EmpService create(Throwable cause) {
		return new EmpService() {
			public List<Emp> getEmpInfos() {
				return null;
			}

			public String getEmpInfoByName(String name) {
				return null;
			}
		};
	}
}